using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using ExcellentProjectPlus.Infraestructura.Data.Catalogos.Modelo.Mapping;
using ExcellentProjectPlus.Dominio.Catalogos.Entidades;

namespace ExcellentProjectPlus.Infraestructura.Data.Catalogos.Modelo
{
    public partial class CatalogosContext : DbContext
    {
        static CatalogosContext()
        {
            Database.SetInitializer<CatalogosContext>(null);
        }

        public CatalogosContext()
            : base("Name=CatalogosContext")
        {
        }

        public DbSet<Catalogo> Catalogos { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new CatalogoMap());
        }
    }
}
